package ij.umasuo;

import ij.ImagePlus;
import ij.umasuo.AOTFController.CtrInterface;
import ij.umasuo.AOTFController.TestCtr;
import ij.umasuo.algorithms.AlgorithmManager;
import ij.umasuo.algorithms.QUICKPALM.QuickPalmProcessor;

public class Test implements CtrInterface{
	String path = "D:\\2013 Nov. 5\\Ovary\\STORM\\Rawdata1_COT_30ms\\";
	int count = 0;
	ImagePlus imp = null;
	public static void test(){
		AlgorithmManager.getInstance().setSourceModel(MyConstants.ALGORITHM_ONLINE);
//		AlgorithmManager.getInstance().setOnlineImgSrouce(new Test());
		AlgorithmManager.getInstance().setOnlineImgSrouce(new TestCtr());
//		AlgorithmManager.getInstance().startProcessStorm();
		AlgorithmManager.getInstance().startProcessGaussian();
	}

	@Override
	public ImagePlus getNextImage() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ImagePlus getNextImage(int channel) {
		if(count > 93248){
			return null;
		}
		count ++;
		imp = new ImagePlus(path+count+".tif");
		return imp;
	}

	@Override
	public int getNextChannel() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getTotalImageCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getNextFrame() {
		return count;
	}

	@Override
	public String getNextImagePath() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getNextImagePath(int channel) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
}
